package com.zetyun.tiger.connector.his.amt;

import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.zetyun.rt.meta.jsonschema.annotation.JsonSchemaTitle;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Set;

@Getter
@Setter
@ToString
@JsonClassDescription("Redis 读取参数类")
public class HisDataParameter {


    @JsonSchemaTitle("master名称")
    @JsonProperty(defaultValue = "redis-master")
    private String masterName;

    @JsonSchemaTitle("sentinel地址")
    @JsonProperty(defaultValue = "rdx1:26379")
    private Set<String> sentinels;

    @JsonSchemaTitle("密码")
    @JsonProperty(defaultValue = "Redis6379")
    private String password;

    @JsonSchemaTitle("数据库")
    @JsonProperty(defaultValue = "7")
    private Integer database;


    @JsonSchemaTitle("公共揽存标志")
    @JsonProperty(required = true, defaultValue = "CB_PUB_DEP_FLG")
    @JsonPropertyDescription("公共揽存标志，用于判断此条数据是否需要获取客户经理对应的历史数据")
    private String pubDepFlag;

    @JsonSchemaTitle("客户经理历史缓存配置")
    private ConntrDataParameter conntrParam;

    @JsonSchemaTitle("分支机构历史缓存配置")
    private OrgDataParameter orgParam;

}
